home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1993 July / Internet Tools.iso / RockRidge / mail / smail-3.1.28 / samples / generic / directors < prev    next >
Encoding:
Text File  |  1992-09-05  |  4.9 KB  |  128 lines

  1. # @(#)samples/generic/directors    1.6 9/6/92 04:41:29
  2.  
  3. # This file defines the configuration of the director subsystem as
  4. # compiled into the smail binary.  By modifying the source file config.h
  5. # the actual internal configuration can be changed.  Thus, this should
  6. # be matched up against config.h and default.c before assuming this is
  7. # completely correct.
  8.  
  9. # aliasinclude - expand ":include:filename" addresses produced by alias files
  10. aliasinclude:
  11.     driver=aliasinclude,        # use this special-case driver
  12.     nobody;                # associate nobody user with addresses
  13.                     #  when mild permission violations
  14.                     #  are encountered
  15.  
  16.     copysecure,            # get permissions from alias director
  17.     copyowners,            # get owners from alias director
  18.  
  19. # forwardinclude - expand ":include:filename" addrs produced by forward files
  20. forwardinclude:
  21.     driver=forwardinclude,        # use this special-case driver
  22.     nobody;
  23.  
  24.     checkpath,            # check path accessibility
  25.     copysecure,            # get perms from forwarding director
  26.     copyowners,            # get owners from forwarding director
  27.  
  28. # aliases - search for alias expansions stored in a database
  29. aliases:
  30.     driver=aliasfile,        # general-purpose aliasing director
  31.     -nobody,            # all addresses are associated
  32.                     # with nobody by default, so setting
  33.                     # this is not useful.
  34.     sender_okay,            # don't remove sender from expansions
  35. #    -sender_okay,            # do remove sender, sendmail compatible
  36.     owner=owner-$user;        # problems go to an owner address
  37.  
  38.     file=/usr/lib/aliases,        # default: sendmail compatible
  39. #    file=mail.aliases,        # use this for YP
  40.     modemask=002,            # should not be globally writable
  41.     optional,            # ignore if file does not exist
  42.     proto=lsearch,            # unsorted ASCII file
  43. #    proto=bsearch,            # sorted file
  44. #    proto=aliasyp,            # use this for YP
  45. #    proto=dbm,            # use this to be sendmail compatible
  46.  
  47. # dotforward - expand .forward files in user home directories
  48. dotforward:
  49.     driver=forwardfile,        # general-purpose forwarding director
  50.     owner=real-$user,        # problems go to the user's mailbox
  51.     nobody,                # use nobody user, if unsecure
  52.     sender_okay;            # sender never removed from expansion
  53.  
  54.     file=~/.forward,        # .forward file in home directories
  55.     checkowner,            # the user can own this file
  56.     owners=root,            # or root can own the file
  57.     modemask=002,            # it should not be globally writable
  58.     caution=0-10:uucp:daemon,    # don't run things as root or daemons
  59.     # be extra carefull of remotely accessible home directories
  60.     unsecure="~ftp:~uucp:~nuucp:/tmp:/usr/tmp",
  61.  
  62. # forwardto - expand a "Forward to " in user mailbox files
  63. #
  64. # This emulates the V6/V7/System-V forwarding mechanism which uses a
  65. # line of forward addresses stored at the beginning of user mailbox files
  66. # prefixed with the string "Forward to "
  67. forwardto:
  68.     driver=forwardfile,
  69.     owner=Postmaster,        # errors can't go to the user's mailbox
  70.     nobody,                # use nobody user, if unsecure
  71.     sender_okay;            # sender never removed from expansion
  72.  
  73.     file=/usr/spool/mail/${lc:user}, # point at user mailbox files
  74. #    file=/usr/mail/${lc:user},    # the mailbox file for System V
  75.     forwardto,            # enable "Forward to " function
  76.     checkowner,            # the user can own this file
  77.     owners=root,            # or root can own the file
  78.     modemask=0022,            # only owner should be able to write
  79. #    modemask=0002,            # under System V, group mail can write
  80.     caution=0-10:uucp:daemon,    # don't run things as root or daemons
  81.  
  82. # user - match users on the local host with delivery to their mailboxes
  83. user:    driver=user;            # driver to match usernames
  84.  
  85.     transport=local,        # local transport goes to mailboxes
  86.  
  87. # real_user - match usernames when prefixed with the string "real-"
  88. #
  89. # This is useful for allowing an address which explicitly delivers to a
  90. # user's mailbox file.  For example, errors in a .forward file expansion
  91. # can be delivered here, or forwarding loops between multiple machines
  92. # can be resolved by using a real-username address.
  93. real_user:
  94.     driver=user;
  95.  
  96.     transport=local,
  97.     prefix="real-",            # for example, match real-root
  98.  
  99. # lists - expand mailing lists stored in a list directory
  100. #
  101. # mailing lists can be created simply by creating a file in the
  102. # /usr/lib/smail/lists directory.
  103. lists:    driver=forwardfile,
  104.     caution,            # flag all addresses with caution
  105.     nobody,                # and then associate the nobody user
  106.     -sender_okay,            # do remove sender from list expansions
  107. #    sender_okay,            # do NOT remove the sender
  108.     owner=owner-$user;        # system V sites may wish to use
  109.                     # o-$user, as owner-$user may be
  110.                     # too long for a 14-char filename.
  111.  
  112.     # map the name of the mailing list to lower case
  113.     file=lists/${lc:user},
  114.  
  115. # smart_user - a partially specified smartuser director
  116. #
  117. # If the config file attribute smart_user is defined as a string such as
  118. # "$user@domain-gateway" then users not matched otherwise will be sent
  119. # off to the host "domain-gateway".
  120. #
  121. # If the smart_user attribute is not defined, this director is ignored.
  122. smart_user:
  123.     driver=smartuser;        # special-case driver
  124.  
  125.     # do not match addresses which cannot be made into valid
  126.     # RFC822 local addresses without the use of double quotes.
  127.     well_formed_only,
  128.